package chapter2.No2_2_synchronized同步语句块.p锁对象的改变.demo1;

/**
 * Created by Administrator on 2016/11/15.
 */
public class ThreadA extends Thread {
    MyService service;

    public ThreadA(MyService service) {
        this.service = service;
    }

    @Override
    public void run() {
        service.methodA();
    }
}
